package com.dsunsoft.rtu.dao;

import com.dsunsoft.rtu.entity.RtuDeviceReal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RtuDeviceRealMapper {

    int insert(RtuDeviceReal rtuDeviceReal);

    int update(RtuDeviceReal rtuDeviceReal);

    RtuDeviceReal selectById(@Param("deviceId") String deviceId, @Param("dataType") String dataType);

    List<RtuDeviceReal> selectByDeviceId(@Param("deviceId") String deviceId);

    Integer selectCount(@Param("deviceId") String deviceId, @Param("dataType") String dataType);

}
